package com.starlink.model.vo.book;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.util.List;

/**
 * @Auther: zhouyuhang01
 * @Date: 2024/4/9 17:14
 * @Description: MallArticlesBuyVO
 * @Version 1.0.0
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode(callSuper = false)
@ApiModel("商城-立即购买响应模型")
public class MallArticlesBuyVO {
    @ApiModelProperty("商品总价")
    private BigDecimal amount;
    @ApiModelProperty("是否包邮 true 是 false 不是")
    private Boolean isFree;
    @ApiModelProperty("是否支持配送该区域 true 是 false 不是")
    private Boolean supportFree;
    @ApiModelProperty("运费")
    private BigDecimal freePrice;
    @ApiModelProperty("是否是会员 true 是 false 不是")
    private Boolean isVip;

    @ApiModelProperty("是否超库存 true 是 false 不是")
    private Boolean isUp;
    @ApiModelProperty("超库存数据 商品ID")
    private List<Long> upData;

    //收货地址
    @ApiModelProperty("收件地址")
    private List<AddressBuyVO> addresses;

    //商品信息
    @ApiModelProperty("商品信息")
    private List<MallArticlesVO> allArticles;

}
